package com.rz.spark.utils

import org.apache.commons.pool2.impl.GenericObjectPoolConfig
import redis.clients.jedis.{JedisPool, JedisPoolConfig}

object JedisPools {
  private val jedisPool = new JedisPool(new GenericObjectPoolConfig(),"127.0.0.1",6379)

  def getJedis = jedisPool.getResource
}
